Prizm Content Connect
How to Change Proxy Server Service IP Address or Port where it Listens for REST API Requests

By default the Proxy Server service listens on htpp://localhost:18680 for REST API requests.

The host and port is defined in proxyserver_jar.properties file.

Changing the value of http_host is the place where you set the IP address or hostname of the machine where service listens.

Changing the value of http_port is the place where you set the port of the machine where service listens.

Example
Copy Code
# http server listen host or IP
http_host=10.0.0.167
# http server listen port
http_port=18680

You can then call REST API remotely using IP and port as defined above:
http://10.0.0.167:18680/convert2swf?version

The REST API may listen to one IP address or hostname only.
Prizm Proxy Server service needs to be restarted after the configuration has been updated.

Setting Firewall

Changing the http_host may require to allow outbound connections on machine’s firewall.

On Windows this can be done by enabling new Inbound Rule in Windows Firewall for following programs:

<prizm-install>\jre\jre1.6.0_XX_XXXX\java.exe

<prizm-install>\bin\jrunner.exe

where jre1.6.0_XX_XXXX is the Java Runtime environment that suits your Prizm installation and OS platform.

On Linux administrator may need to open port 18680 (or other port as defined in http_port) on all machine IPs using this command:

# sudo iptables -A INPUT -m state --state NEW -p tcp --dport 18680 -j ACCEPT

Updating the Configuration File

All samples require default settings of proxyserver_jar.properties.

The XML configuration file has to have the same values in nodes <WebServiceHost> and <WebServicePort> as defined in http_host and http_port values of proxyserver_jar.properties file.

Example
Copy Code
<?xml version="1.0" encoding="UTF-8"?>
<Config>

<WebServiceHost>10.0.0.167</WebServiceHost>
<WebServicePort>8686</WebServicePort>
</Config>

 

 


©2013. Accusoft Corporation. All Rights Reserved.

Send Feedback